#![no_std]
#![no_main]

use mlibs::cortex_m_rt::entry;
use mlibs::cmsis_rtos2::kernel::{os_kernel_initialize, os_kernel_start, system_init};
use rtt_target::{rprintln, rtt_init_print};
use task::app_task_start;
mod error;

mod adc;
mod task;
mod driver;
mod dma;

#[entry]
unsafe fn main() -> ! {
    rtt_init_print!();
    system_init();

    rprintln!("app run");

    os_kernel_initialize();
    app_task_start();
    os_kernel_start();
    loop {}
}

